package com.jichaoyun.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.jichaoyun.model.entity.PipeLossAlarm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author zhen
* @description 针对表【balanceAlarm】的数据库操作Mapper
* @createDate 2023-12-08 11:11:54
* @Entity com.jichaoyun.model.entity.Balancealarm
*/
@Mapper
public interface PipelossAlarmMapper extends BaseMapper<PipeLossAlarm> {
    @Select("SELECT top 1 * FROM pipelossAlarm WHERE line_id = #{id} ORDER BY id DESC")
    PipeLossAlarm getLastRecord(Integer id);

}




